﻿using System;
using System.Web;
using System.Runtime.Serialization;

namespace COM.Rights.Model
{
    public enum FunctionType
    {
        目录 = 1,
        页面 = 2,
        控制点 = 3,
        其他 = 100
    }
    public partial class TFunctionInfo
    {
        public string state { get; set; }
        public string id { get; set; }
        public string text { get; set; }

        partial void OnModelCreated() { }
        partial void OnModelLoaded()
        {
            switch (FType)
            {
                case 3:
                    state = "open"; break;
                default:
                    state = "closed"; break;
            }

            id = GID;
            text = Name;
        }
    }
}